﻿#ifndef SUSWIDGET_H
#define SUSWIDGET_H

#include <QWidget>
#include <QDateTime>
#include <QLineEdit>
#include <QTextCodec>
#include <QApplication>
#include <QDesktopWidget>

#ifndef REMAIN_TIME
#define REMAIN_TIME     0
#endif

#ifndef TO_SHUTDOWN
#define TO_SHUTDOWN     1
#endif

#ifndef SHUTDOWN_ERROR
#define SHUTDOWN_ERROR  2
#endif

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

class SusWidget : public QWidget
{
    Q_OBJECT

public:
    SusWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
    ~SusWidget();

private:
    QLineEdit  *timeEdit;

public slots:
    void SetRemainTime(const QTime &time, int type);
};

#endif // SUSWIDGET_H
